package com.zelix;

import java.io.*;
import java.util.HashSet;
import java.util.Hashtable;

abstract class u5 extends q5
    implements j5
{

    b6 o[][];
    private static String z[];

    u5(kt kt1, int i, String s, jb jb1, qy qy, PrintWriter printwriter, String s1)
        throws IOException, dc {
        super(kt1, i, s, jb1, qy);
        byte abyte0[];
        jb jb2;
        abyte0 = new byte[super.m];
        jb1.read(abyte0);
        jb2 = jb.a(abyte0, false);
        int j;
        int k;

        try {
            if (super.m >= 1) {
                j = jb2.readUnsignedByte();
                o = new b6[j][];
                k = 0;
                for (; k < j; k++) {
                    int l;
                    int i1;
                    l = jb2.readUnsignedShort();
                    o[k] = new b6[l];
                    i1 = 0;
                    for (; i1 < l; i1++) {
                        o[k][i1] = new b6(this, jb2, qy);
                        if (!o[k][i1].b()) {
                            super.n = false;
                            printwriter.println(i() + z[2] + s1 + z[3] + o[k][i1].a());
                            super.j = abyte0;
                        }
                    }
                }
            }
            super.n = false;
            printwriter.println(i() + z[2] + s1 + z[1] + super.m);
            super.j = abyte0;
        } catch (IOException ioexception) {
            super.n = false;
            printwriter.println(i() + z[2] + s1 + z[0] + ioexception);
            super.j = abyte0;
        } finally {
            jb2.close();
        }
    }

    public void b(Hashtable hashtable) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                for (int j = 0; j < o[i].length; j++) {
                    o[i][j].b(hashtable);
                }
            }
        }
    }

    public void a(HashSet hashset, HashSet hashset1, HashSet hashset2, HashSet hashset3) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                for (int j = 0; j < o[i].length; j++) {
                    o[i][j].a(hashset, hashset1, hashset2, hashset3);
                }
            }
        }
    }

    public final void a(HashSet hashset) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                for (int j = 0; j < o[i].length; j++) {
                    o[i][j].a(hashset);
                }
            }
        }
    }

    public void a(Hashtable hashtable) {
        super.a(hashtable);
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                for (int j = 0; j < o[i].length; j++) {
                    o[i][j].a(hashtable);
                }
            }
        }
    }

    public void a() {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                for (int j = 0; j < o[i].length; j++) {
                    o[i][j].a();
                }
            }
        }
    }

    public void a(yg yg) {
        if (super.n) {
            for (int i = 0; i < o.length; i++) {
                for (int j = 0; j < o[i].length; j++) {
                    o[i][j].a(yg);
                }
            }
        }
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable, nh nh)
        throws IOException, tb {
        int i;
        super.a(dataoutputstream, hashtable, nh);
        if (super.n) {
            dataoutputstream.writeByte(o.length);
            for (i = 0; i < o.length; i++) {
                int j;
                dataoutputstream.writeShort(o[i].length);
                for (j = 0; j < o[i].length; j++) {
                    o[i][j].a(dataoutputstream, hashtable, nh);
                }
            }
        } else {
            dataoutputstream.write(super.j);
        }
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x79;
                    break;
                case 1:
                    key =114;
                    break;
                case 2:
                    key =80;
                    break;
                case 3:
                    key =61;
                    break;
                case 4:
                    key =54;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[4];
        as[0] = z("Y\033#\035F\026\001#TT\025\013p^Y\013\000%MBYHp".toCharArray());
        as[1] = z("YZ\022\024\026CR<XX\036\0068\0".toCharArray());
        as[2] = z("YHp".toCharArray());
        as[3] = z("YZ\021\024\026".toCharArray());
        z = as;

    }
}